﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:saluse="clr-namespace:LiteVisualizerPlayer.Controls;assembly=MyStudioServerPlayer"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
	<LinearGradientBrush x:Key="SliderFocusBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF81DCFF" Offset="0"/>
		<GradientStop Color="#FF5C91A5" Offset="1"/>
	</LinearGradientBrush>
<LinearGradientBrush x:Key="AlternateSliderThumbBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF3FA4FC"/>
		<GradientStop Color="#FF0060A3" Offset="1"/>
	</LinearGradientBrush>
	<Style x:Key="SaluseSliderThumbStyle" TargetType="Thumb">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="IsTabStop" Value="False"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Thumb">
					<Grid>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
											<SplineColorKeyFrame KeyTime="0" Value="#CCFFFFFF"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
											<SplineColorKeyFrame KeyTime="0" Value="#7FFFFFFF"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<SplineColorKeyFrame KeyTime="0" Value="#D8FFFFFF"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<SplineColorKeyFrame KeyTime="0" Value="#C6FFFFFF"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
											<SplineColorKeyFrame KeyTime="0" Value="#8CFFFFFF"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
											<SplineColorKeyFrame KeyTime="0" Value="#3FFFFFFF"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
							<Grid Margin="0" Background="{TemplateBinding Background}">
								<Border x:Name="BackgroundAnimation" Opacity="0" Background="#66000000"/>
								<Rectangle x:Name="BackgroundGradient" Visibility="Collapsed">
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint=".7,1" StartPoint=".7,0">
											<GradientStop Color="#FFFFFFFF" Offset="0"/>
											<GradientStop Color="#F9FFFFFF" Offset="0.375"/>
											<GradientStop Color="#E5FFFFFF" Offset="0.625"/>
											<GradientStop Color="#C6FFFFFF" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
							</Grid>
						</Border>
						<Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" RadiusX="2" RadiusY="2" IsHitTestVisible="false" Opacity="0"/>
						<!--
						<Rectangle x:Name="FocusVisualElement" Stroke="{Binding FocusBrush, RelativeSource={RelativeSource TemplatedParent}}" StrokeThickness="1" RadiusX="1" RadiusY="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>
						-->
						<Rectangle x:Name="FocusVisualElement" Stroke="{StaticResource SliderFocusBrush}" StrokeThickness="1" RadiusX="1" RadiusY="1" Margin="1" IsHitTestVisible="false" Opacity="0"/>					
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Color x:Key="HighlightGlowColor">#FF79D7FB</Color>
	<!-- saluse:SaluseSlider start -->
	<Style x:Key="SaluseSliderStyle" TargetType="saluse:SaluseSlider">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="saluse:SaluseSlider">
					<Grid x:Name="Root">
						<Grid.Resources>
							<ControlTemplate x:Key="RepeatButtonTemplate">
								<Grid x:Name="Root" Opacity="0" Background="Transparent"/>
							</ControlTemplate>
						</Grid.Resources>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualStateGroup.Transitions>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="HorizontalThumb" Storyboard.TargetProperty="(UIElement.Effect).(DropShadowEffect.BlurRadius)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="10"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="HorizontalTrackRectangleDisabledOverlay" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ThumbDisabledOverlay" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="VerticalTrackRectangleDisabledOverlay" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Grid x:Name="HorizontalTemplate" Background="{TemplateBinding Background}">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto"/>
								<ColumnDefinition Width="Auto"/>
								<ColumnDefinition Width="*"/>
							</Grid.ColumnDefinitions>
							<Popup x:Name="SliderPopup" VerticalOffset="-25">
								<Grid>
									<Border BorderThickness="1" CornerRadius="3" Padding="3,2" Background="#E5FFFFFF" BorderBrush="Black">
										<Border.Effect>
											<DropShadowEffect BlurRadius="4" ShadowDepth="0"/>
										</Border.Effect>
										<TextBlock x:Name="SliderPopupTextBlock" Text="{Binding Value, Converter={StaticResource MillisecondsToTimeConverter}}" Foreground="Black"/>
									</Border>
								</Grid>
							</Popup>
							<Rectangle x:Name="TrackRectangle" StrokeThickness="{TemplateBinding BorderThickness}" RadiusX="1" RadiusY="1" Height="3" Margin="5,0,5,0" Grid.Column="0" Grid.ColumnSpan="3">
								<Rectangle.Fill>
									<LinearGradientBrush StartPoint="0.0,0.5" EndPoint="1,0.5" >
										<GradientStop Color="#FF00FF00" Offset="0"/>
										<GradientStop Color="#FF353434" Offset="0"/>
										<GradientStop Color="#FF454545" Offset="1"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Rectangle x:Name="HorizontalTrackRectangleDisabledOverlay" Fill="White" RadiusX="1" RadiusY="1" Height="3" Margin="5,0,5,0" Opacity=".55" Visibility="Collapsed" Grid.Column="0" Grid.ColumnSpan="3"/>
							<RepeatButton x:Name="HorizontalTrackLargeChangeDecreaseRepeatButton" Height="18" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="0"/>
							<Thumb x:Name="HorizontalThumb" Height="18" Width="11" IsTabStop="True" Grid.Column="1" Style="{StaticResource SaluseSliderThumbStyle}" BorderThickness="1" Margin="0" Background="{TemplateBinding ThumbBrush}" BorderBrush="{TemplateBinding BorderBrush}" Cursor="Hand">
								<Thumb.Effect>
									<DropShadowEffect ShadowDepth="0" Color="{StaticResource HighlightGlowColor}" BlurRadius="0"/>
								</Thumb.Effect>
							</Thumb>
							<Rectangle x:Name="ThumbDisabledOverlay" Fill="White" RadiusX="2" RadiusY="2" Width="11" Opacity=".55" Visibility="Collapsed" Grid.Column="1"/>
							<RepeatButton x:Name="HorizontalTrackLargeChangeIncreaseRepeatButton" Height="18" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Column="2"/>
						</Grid>
						<Grid x:Name="VerticalTemplate" Visibility="Collapsed" Background="{TemplateBinding Background}">
							<Grid.RowDefinitions>
								<RowDefinition Height="*"/>
								<RowDefinition Height="Auto"/>
								<RowDefinition Height="Auto"/>
							</Grid.RowDefinitions>
							<Rectangle Fill="#FFE6EFF7" Stroke="#FFA3AEB9" StrokeThickness="{TemplateBinding BorderThickness}" RadiusX="1" RadiusY="1" Margin="0,5,0,5" Width="3" Grid.Row="0" Grid.RowSpan="3"/>
							<Rectangle x:Name="VerticalTrackRectangleDisabledOverlay" Fill="White" RadiusX="1" RadiusY="1" Margin="0,5,0,5" Width="3" Opacity=".55" Visibility="Collapsed" Grid.Row="0" Grid.RowSpan="3"/>
							<RepeatButton x:Name="VerticalTrackLargeChangeDecreaseRepeatButton" Width="18" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="2"/>
							<Thumb x:Name="VerticalThumb" Height="11" Width="18" IsTabStop="True" Grid.Row="1"/>
							<RepeatButton x:Name="VerticalTrackLargeChangeIncreaseRepeatButton" Width="18" IsTabStop="False" Template="{StaticResource RepeatButtonTemplate}" Grid.Row="0"/>
						</Grid>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Color x:Key="MediaDisplayStyle">White</Color>
	<LinearGradientBrush x:Key="ButtonBackgroundBrush" EndPoint="0.699999988079071,1" StartPoint="0.699999988079071,0">
		<GradientStop Color="#FF747474" Offset="0.099"/>
		<GradientStop Color="White"/>
		<GradientStop Color="#FF939191" Offset="1"/>
		<GradientStop Color="#FF292929" Offset="0.534"/>
		<GradientStop Color="#FF4B4949" Offset="0.914"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="AlternateButtonBackgroundBrush" EndPoint="0.699999988079071,1" StartPoint="0.699999988079071,0">
		<GradientStop Color="#FF00BEFF"/>
		<GradientStop Color="#FF0A465C" Offset="0.396"/>
		<GradientStop Color="#FF072A37" Offset="0.915"/>
		<GradientStop Color="#FF06516A" Offset="0.052"/>
		<GradientStop Color="#FF083B4E" Offset="1"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ButtonBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="Black" Offset="0.522"/>
		<GradientStop Color="#FFA7A7A7" Offset="1"/>
		<GradientStop Color="#FF929292"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="AlternateButtonBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFBCBCBC" Offset="0"/>
		<GradientStop Color="#FF084456" Offset="0.133"/>
		<GradientStop Color="#FF002B35" Offset="1"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="AlternateFocusButtonBackgroundBrush" EndPoint="0.699999988079071,1" StartPoint="0.699999988079071,0">
		<GradientStop Color="#FF00BEFF"/>
		<GradientStop Color="#FF0E5A76" Offset="0.396"/>
		<GradientStop Color="#FF0B4155" Offset="0.915"/>
		<GradientStop Color="#FF086482" Offset="0.052"/>
		<GradientStop Color="#FF083B4E" Offset="1"/>
	</LinearGradientBrush>
	<Color x:Key="ButtonForegroundColor">White</Color>
	<LinearGradientBrush x:Key="GreyBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF3F3E3E" Offset="0.748"/>
		<GradientStop Color="White"/>
		<GradientStop Color="#FF020202" Offset="0.108"/>
		<GradientStop Color="#FF353535" Offset="0.46"/>
		<GradientStop Color="#FF2B2B2B" Offset="1"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="SliderThumbBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF476EE2" Offset="0.082"/>
		<GradientStop Color="#FF051E63" Offset="0.909"/>
		<GradientStop Color="#FF4A78F6" Offset="1"/>
		<GradientStop Color="#FFC2CBE6"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="SliderBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF104272" Offset="0"/>
		<GradientStop Color="#FF2B3B4D" Offset="0.509"/>
		<GradientStop Color="#FF010914" Offset="1"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="AlternateSliderBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FF3E7396" Offset="0"/>
		<GradientStop Color="#FF0098FF" Offset="1"/>
		<GradientStop Color="#FF154768" Offset="0.526"/>
	</LinearGradientBrush>
</ResourceDictionary>
